package cn.edu.sgu.www.mhxysy.entity.server;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 服务器
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
@TableName("server")
public class Server implements Serializable {
	private static final long serialVersionUID = 18L;

	@TableId(value = "id", type = IdType.AUTO)
	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 服务器名
	 */
	@ApiModelProperty(value = "服务器名")
	private String name;

	/**
	 * 大区ID
	 */
	@ApiModelProperty(value = "大区ID")
	private Integer areaId;

	/**
	 * 开服时间
	 */
	@ApiModelProperty(value = "开服时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
	private LocalDateTime openTime;
}